package com.xnyzc.lhy.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Luoqingwei
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "trackInfo")
public class TrackInfo implements Serializable {

    @Id
    private Long id;
    private String orderNo;
    //经
    private String lng;
    //纬
    private String lat;
    //速度
    private Double speed;
    //猎鹰服务id
    private Long serviceId;
    //猎鹰终端id
    private Long terminalId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;
}
